Dynomotion

Group: DynoMotion Message: 861 From: wcarrothers Date: 1/9/2011
Subject: Kflop/Kanalog to Mach Opto IO's
Hello..

Trying to get some things setup a bit more now that I have most of my gantry built.

Anyway, I have movement in mach and can jog. So wanted to hook up some form of estop input. Figured that would be easy enough.

I wired in my limit switches to trigger the optoical I/O - 0 (zero) on the kanalog board. I can see in the k CNC setup that I can toggel this check on and off. So I know my connection and switches are working.

says on the screen this is bit #136.

So figured I could go into ports and pins (in mach) and setup estop on pin 136. But when I enter this number for that apply and ok. Then go back in the value in the pin for the estop field changes to -120

So wondering how this is done or rather if the opto inputs can be tied to mach?

Anyone with some sample mach C setup code would also be great and could send that to me to look at.

b.
Group: DynoMotion Message: 862 From: wcarrothers Date: 1/9/2011
Subject: Re: Kflop/Kanalog to Mach Opto IO's
Think I found the answer. Configure it as port 2 and deduct 128 from the bit number (and use latest plugin).. Will give it a try.

b.


--- In DynoMotion@yahoogroups.com, "wcarrothers" <wcarrothers@...> wrote:
>
> Hello..
>
> Trying to get some things setup a bit more now that I have most of my gantry built.
>
> Anyway, I have movement in mach and can jog. So wanted to hook up some form of estop input. Figured that would be easy enough.
>
> I wired in my limit switches to trigger the optoical I/O - 0 (zero) on the kanalog board. I can see in the k CNC setup that I can toggel this check on and off. So I know my connection and switches are working.
>
> says on the screen this is bit #136.
>
> So figured I could go into ports and pins (in mach) and setup estop on pin 136. But when I enter this number for that apply and ok. Then go back in the value in the pin for the estop field changes to -120
>
> So wondering how this is done or rather if the opto inputs can be tied to mach?
>
> Anyone with some sample mach C setup code would also be great and could send that to me to look at.
>
> b.
>
Group: DynoMotion Message: 863 From: Vlad O Date: 1/10/2011
Subject: Re: Kflop/Kanalog to Mach Opto IO's
I guess, shall be 136 - 120 = 16
So, you need to use in Mach - Port2   Pin16

Happy Milling,
Vlad


On Sun, Jan 9, 2011 at 6:20 PM, wcarrothers <wcarrothers@...> wrote:
 

Hello..

Trying to get some things setup a bit more now that I have most of my gantry built.

Anyway, I have movement in mach and can jog. So wanted to hook up some form of estop input. Figured that would be easy enough.

I wired in my limit switches to trigger the optoical I/O - 0 (zero) on the kanalog board. I can see in the k CNC setup that I can toggel this check on and off. So I know my connection and switches are working.

says on the screen this is bit #136.

So figured I could go into ports and pins (in mach) and setup estop on pin 136. But when I enter this number for that apply and ok. Then go back in the value in the pin for the estop field changes to -120

So wondering how this is done or rather if the opto inputs can be tied to mach?

Anyone with some sample mach C setup code would also be great and could send that to me to look at.

b.


Group: DynoMotion Message: 865 From: Tom Kerekes Date: 1/10/2011
Subject: Re: Kflop/Kanalog to Mach Opto IO's
Hi Vlad,
 
Actually you need to subtract 128 as described in step #7 here:
 
 
Thanks
TK